let homeview:Object = {
    state:{
        navBool:true,
        // 控制弹出框状态
        dialogFromVisible:false,
        tableData :[
          ],
        //编辑框信息
        editForm: {} 
    },
    getters:{

    },
    mutations:{
        // 修改state数据
        SET_NAVBOOL(state:any){
            state.navBool = !state.navBool
        },
        // 修改
        SET_DIALOG(state:any){
            state.dialogFromVisible = !state.dialogFromVisible
        },
        //改变侧边栏状态
        setNavBool(state: any) {
          state.navBool = !state.navBool
        },
        //修改编辑弹窗显示状态
        changeDialog(state: any) {
            state.dialogVisible = !state.dialogVisible
        },
        //编辑框信息
        showEdit(state: any, obj: any) {
            state.editForm = JSON.parse(JSON.stringify(obj))
        },
    },
    actions:{
      SETNAVBOOL(context: any) {
        context.commit('setNavBool')
      },
      HANDLEDELETE(context: any, obj: any) {
          context.commit('handleDelete', obj)
      }
    }
}
export default homeview